package cc.jq1024.infrastructure.persistent.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lijiaqiang@ljq1024.cc
 * @since 2024-04-22
 */
@Getter
@Setter
@TableName("raffle_activity_sku")
public class RaffleActivitySkuPO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品sku - 把每一个组合当做一个商品
     */
    @TableField("sku")
    private Long sku;

    /**
     * 活动ID
     */
    @TableField("activity_id")
    private Long activityId;

    /**
     * 活动个人参与次数ID
     */
    @TableField("activity_count_id")
    private Long activityCountId;

    /**
     * 商品库存
     */
    @TableField("stock_count")
    private Integer stockCount;

    /**
     * 剩余库存
     */
    @TableField("stock_count_surplus")
    private Integer stockCountSurplus;

    /**
     * 商品金额【积分】
     */
    @TableField("product_amount")
    private BigDecimal productAmount;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


}
